package com.sys.console.pojo;

import org.apache.shiro.util.StringUtils;

public class SysModuleDto {
    private Integer id;//ID

    private String name;//节点名称

    private Integer pid;//父ID

    private String url;//地址
    
    private String target;//点击弹出事件
    
    private Boolean open;//是否展开节点,
    
    private Boolean checked;//是否选中

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getpid() {
		return pid;
	}

	public void setpid(Integer pid) {
		this.pid = pid;
	}

	public String getUrl() {
		if(id!=null){
			url = "sysModule.do?mid="+this.id;
		}
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getTarget() {
		if(!StringUtils.hasText(target)){
			this.target = "treeNodeInfo";
		}
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public Boolean isOpen() {
		if(open==null){
			this.open = true;
		}
		return open;
	}

	public void setOpen(Boolean open) {
		this.open = open;
	}

	public Boolean getChecked() {
		if(this.checked==null){
			this.checked = true;
		}
		return checked;
	}

	public void setChecked(Boolean checked) {
		this.checked = checked;
	}

    
}